package com.zst.demo1.service;

import com.zsr.entities.CommonResult;
import com.zsr.entities.UserDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Service
@FeignClient(value = "zst-service-demo02")
public interface Demo2FeignService {
    @GetMapping(value = "/zst/demo2/get-user-base/{id}")
    CommonResult<UserDTO> getUserBase(@PathVariable("id") Long id);

    @GetMapping(value = "/zst/demo2/get-only-user/{id}")
    CommonResult<UserDTO> getOnlyUser(@PathVariable("id") Long id);

}
